package appapi.dao;

import appapi.Request.Basic.StaffReq;
import appapi.Request.StaffPageReq;
import appapi.Request.bridge.AccessOperReq;
import appapi.Vo.brider.UserVO;
import appapi.entity.Zhongjiao.StaffDto;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;import java.util.Map;

/**
 * @author djq
 * @date 2023/5/25 16:05
 * @description:
 */

@Mapper
public interface StaffMapper {
    int deleteByPrimaryKey(Long staffId);

    int deleteByIds(@Param("staffIds") List<Long> staffIds);
    int insert(StaffDto record);

    int insertSelective(StaffDto record);

    StaffDto selectByPrimaryKey(Long staffId);

    int updateByPrimaryKeySelective(StaffDto record);

    int updateByPrimaryKey(StaffDto record);

    Map<String, Object> selectAccount(@Param("account") String account);

    List<Map<String, Object>> selectStaffs(StaffPageReq dto);

    List<StaffDto> selectAllByStaffMobile(@Param("staffMobile")String staffMobile);


    List<StaffDto> selectStaffList(StaffReq dto);

    Map<String, Object> selectStaffDetail(Long staffId);

    Map<String, Object> selectMobile(String staffMobile);

    List<Map<String, Object>> selectWarning(long equip_id);

    Map<String, Object> selectWxid(String wxid);
    int updateByStaffWxid(@Param("wxid") String wxid,@Param("phone") String phone);

    StaffDto selectAllByStaffMobileAndStaffName(@Param("staffMobile")String staffMobile,@Param("staffName")String staffName);

    List<UserVO> getOperator(AccessOperReq req);


}